package main

import ("github.com/garyburd/redigo/redis"
"fmt")


func main()  {
	conn,err := redis.Dial("tcp","10.1.210.69:6379")
	if err != nil {
		fmt.Println("connect redis error :",err)
		return
	}
	defer conn.Close()
	conn.Send("MULTI")
	conn.Send("INCR", "foo")
	conn.Send("INCR", "bar")
	r, err := conn.Do("EXEC")
	fmt.Println(r)
}//[1, 1]

